package com.search.dao.repo;


import com.search.entity.Hospital;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface HospitalRepository extends ElasticsearchRepository<Hospital, Long> {

    Page<Hospital> findByName(String name, Pageable pageable);

}
